#ifndef _IFILE_H_
#define _IFILE_H_

class IFile
{
public:
	virtual int Read(void* pBuffer, size_t uElementSize, size_t uCount) = 0;
	virtual int Write(void* pBuffer, size_t uElementSize, size_t uCount) = 0;

	virtual int Seek(long lOffset, int nOrigin) = 0;
	virtual size_t Size(void) = 0;
};

IFile* g_OpenFile(const char* pcszFileName, const char* pcszMode);
void g_CloseFile(IFile* pFile);

#endif	// _IFILE_H_